home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / blogsome.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  1KB  |  44 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="blogsome"
  3.          version="$Id: blogsome.xml 13478 2007-07-19 19:45:26Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <strings>
  7.     <string name="domains" value="blogsome.com"/>
  8.   </strings>
  9.  
  10.   <detect type="login">
  11.     <url><domain equals="blogsome.com"/></url>
  12.     <form>
  13.       <xpath name="username" extract="value">
  14.         <![CDATA[//input[@id="log"]]]>
  15.       </xpath>
  16.       <xpath name="password" extract="value">
  17.         <![CDATA[//input[@id="pwd"]]]>
  18.       </xpath>
  19.     </form>
  20.   </detect>
  21.  
  22.   <detect type="loggedin">
  23.     <url><domain equals="blogsome.com"/></url>
  24.     <xpath><![CDATA[//ul/li[@class="last"]/a/text()[contains(.,"Logout")]]]></xpath>
  25.   </detect>
  26.  
  27.   <detect type="changepassword">
  28.     <url>
  29.       <domain equals="blogsome.com"/>
  30.       <path contains="/wp-admin/profile.php"/>
  31.     </url>
  32.     <document>
  33.       <regexp multiline="true" re1="username">
  34.         <![CDATA[/Username:<\/th>.*?>(.*?)<\/td>/]]>
  35.       </regexp>
  36.     </document>
  37.     <form>
  38.       <xpath name="password" extract="value">
  39.         <![CDATA[//input[@type="password"][@name="pass2"]]]>
  40.       </xpath>
  41.    </form>
  42.   </detect>
  43. </service>
  44.